import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/logins.vue'
// import ddd from '../views/ddd.vue'


Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'login',
        component: Login

    }, {
        path: '/', // 程序启动默认路由
        component: () =>
            import('@/components/common/Whole.vue'),
        meta: {
            title: '整体页面布局'
        },
        redirect: '/Home', // 重定向到首页
        children: [{
                path: '/HomePage',
                name: "HomePage",
                component: () =>
                    import('@/views/HomePage/index.vue'),
                meta: {
                    title: '数据综合统计'
                },
                redirect: '/HomePage/comprehensiveHome',
                children: [{
                    path: 'comprehensiveHome',
                    name: "comprehensiveHome",
                    component: () =>
                        import('@/views/HomePage/comprehensiveHome/index.vue'),
                    meta: {
                        title: '数据综合统计大屏'
                    },
                }]
            },
            {
                path: '/systemSetPage',
                name: "systemSetPage",
                component: () =>
                    import('@/views/systemSetPage/index.vue'),
                meta: {
                    title: '系统设置'
                },
                // redirect: '/systemSetPage/systemData',
                // children: [{
                //     path: 'comprehensiveHome',
                //     name: "comprehensiveHome",
                //     component: () =>
                //         import('@/views//systemSetPage/systemData'),
                //     meta: {
                //         title: '系统设置'
                //     },
                // }]
            },
            // 
            {
                path: '/materialQualityPage',
                name: "materialQualityPage",
                component: () =>
                    import('@/views/materialQualityPage/index.vue'),
                meta: {
                    title: '材料质量管控'
                },
                redirect: '/materialQualityPage/materialQualityHome', // 该配置是若点击选择一级菜单时，默认选中并跳转到该一级菜单下的第一个二级菜单
                children: [
                    // 进场材料管理
                    {
                        path: '/materialQualityPage/materialQualityHome',
                        name: "materialQualityHome",
                        component: () =>
                            import('@/views/materialQualityPage/materialQualityHome/index.vue'),
                        meta: {
                            title: '材料质量管控大屏',

                        },
                    },

                    {
                        path: '/materialQualityPage/entryLedger',
                        name: "entryLedger",
                        component: () =>
                            import('@/views/materialQualityPage/rawMaterialManage/entryLedger/index.vue'),
                        meta: {
                            title: '材料进场台账查看',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/entryLedgerText',
                        name: "entryLedgerText",
                        component: () =>
                            import('@/views/materialQualityPage/rawMaterialManage/entryLedgerText/index.vue'),
                        meta: {
                            title: '材料进场台账编辑页',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/inspectionLedger',
                        name: "inspectionLedger",
                        component: () =>
                            import('@/views/materialQualityPage/rawMaterialManage/inspectionLedger/index.vue'),
                        meta: {
                            title: '材料检测台账',
                            requiresAuth: true
                        },
                    },
                    // 进场材料管理
                    // 见证取样
                    {
                        path: '/materialQualityPage/fieldSampling',
                        name: "fieldSampling",
                        component: () =>
                            import('@/views/materialQualityPage/sampleManage/fieldSampling/index.vue'),
                        meta: {
                            title: '现场见证取样',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/fieldSamplingText',
                        name: "fieldSamplingText",
                        component: () =>
                            import('@/views/materialQualityPage/sampleManage/fieldSamplingText/index.vue'),
                        meta: {
                            title: '现场见证取样详情',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/collection',
                        name: "collection",
                        component: () =>
                            import('@/views/materialQualityPage/sampleManage/collection/index.vue'),
                        meta: {
                            title: '样品室内收样',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/collectionText',
                        name: "collectionText",
                        component: () =>
                            import('@/views/materialQualityPage/sampleManage/collectionText/index.vue'),
                        meta: {
                            title: '样品室内收样详情',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/sampleMaterial',
                        name: "sampleMaterial",
                        component: () =>
                            import('@/views/materialQualityPage/sampleManage/sampleMaterial/index.vue'),
                        meta: {
                            title: '检测委托单',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/sampleMaterialText',
                        name: "sampleMaterialText",
                        component: () =>
                            import('@/views/materialQualityPage/sampleManage/sampleMaterialText/index.vue'),
                        meta: {
                            title: '检测委托单详情',
                            requiresAuth: true
                        },
                    },
                    // 见证取样
                    // 试验检测管理
                    {
                        path: '/materialQualityPage/filing',
                        name: "filing",
                        component: () =>
                            import('@/views/materialQualityPage/testDetectionManage/filing/index.vue'),
                        meta: {
                            title: '备案信息管理',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/samplesLedger',
                        name: "samplesLedger",
                        component: () =>
                            import('@/views/materialQualityPage/testDetectionManage/samplesLedger/index.vue'),
                        meta: {
                            title: '样品登记台账',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/testingLedger',
                        name: "testingLedger",
                        component: () =>
                            import('@/views/materialQualityPage/testDetectionManage/testingLedger/index.vue'),
                        meta: {
                            title: '检测报告台账',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/unqualifiedReport',
                        name: "unqualifiedReport",
                        component: () =>
                            import('@/views/materialQualityPage/testDetectionManage/unqualifiedReport/index.vue'),
                        meta: {
                            title: '不合格报告管理',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/InspectionForm',
                        name: "InspectionForm",
                        component: () =>
                            import('@/views/materialQualityPage/testDetectionManage/InspectionForm/index.vue'),
                        meta: {
                            title: '材料报告单管理',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/InspectionFormText',
                        name: "InspectionFormText",
                        component: () =>
                            import('@/views/materialQualityPage/testDetectionManage/InspectionFormText/index.vue'),
                        meta: {
                            title: '材料报告单管理详情',
                            requiresAuth: true
                        },
                    },
                    // 试验检测管理
                    // 外委检测管理
                    {
                        path: '/materialQualityPage/outsourcedSample',
                        name: "outsourcedSample",
                        component: () =>
                            import('@/views/materialQualityPage/outsourcedManage/outsourcedSample/index.vue'),
                        meta: {
                            title: '外委样品管理',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/outsourcedSampleText',
                        name: "outsourcedSampleText",
                        component: () =>
                            import('@/views/materialQualityPage/outsourcedManage/outsourcedSampleText/index.vue'),
                        meta: {
                            title: '外委样品管理详情',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/qualificationReport',
                        name: "qualificationReport",
                        component: () =>
                            import('@/views/materialQualityPage/outsourcedManage/qualificationReport/index.vue'),
                        meta: {
                            title: '外委报告管理',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/qualificationReportText',
                        name: "qualificationReportText",
                        component: () =>
                            import('@/views/materialQualityPage/outsourcedManage/qualificationReportText/index.vue'),
                        meta: {
                            title: '外委报告管理详情',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/outUnQualifiedReports',
                        name: "outUnQualifiedReports",
                        component: () =>
                            import('@/views/materialQualityPage/outsourcedManage/outUnQualifiedReports/index.vue'),
                        meta: {
                            title: '不合格报告管理',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/outUnQualifiedReportsText',
                        name: "outUnQualifiedReportsText",
                        component: () =>
                            import('@/views/materialQualityPage/outsourcedManage/outUnQualifiedReportsText/index.vue'),
                        meta: {
                            title: '外委报告管理详情',
                            requiresAuth: true
                        },
                    },
                    // 外委检测管理
                    // 智能养护管理
                    {
                        path: '/materialQualityPage/sampleStorage',
                        name: "sampleStorage",
                        component: () =>
                            import('@/views/materialQualityPage/intelligentMaintenanceManage/sampleStorage/index.vue'),
                        meta: {
                            title: '试件入库管理',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/sampleOutbound',
                        name: "sampleOutbound",
                        component: () =>
                            import('@/views/materialQualityPage/intelligentMaintenanceManage/sampleOutbound/index.vue'),
                        meta: {
                            title: '试件出库管理',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/materialQualityPage/temperatureAndhumidity',
                        name: "temperatureAndhumidity",
                        component: () =>
                            import('@/views/materialQualityPage/intelligentMaintenanceManage/temperatureAndhumidity/index.vue'),
                        meta: {
                            title: '温湿度在线监控',
                            requiresAuth: true
                        },
                    },
                    // 智能养护管理
                    // 试验机联网监管
                    {
                        path: '/materialQualityPage/sampleTestedManage',
                        name: "sampleTestedManage",
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/sampleTestedManage/index.vue'),
                        meta: {
                            title: '待试验样品',
                            requiresAuth: true
                        },
                    },
                    { // 试验数据监控之压力机数据监控
                        path: '/materialQualityPage/pressDataMonitor',
                        name: "pressDataMonitor",
                        // name: 'pressDataMonitor',
                        meta: {
                            title: '压力机数据监控',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataMonitorManage/pressDataMonitor/index.vue')
                    },
                    { // 试验数据监控之万能机数据监控
                        path: '/materialQualityPage/zigzagDataMonitor',
                        name: 'zigzagDataMonitor',
                        meta: {
                            title: '万能机数据监控',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataMonitorManage/zigzagDataMonitor/index.vue')
                    },
                    { // 试验数据监控之抗折抗压机数据监控
                        path: '/materialQualityPage/compressivePressDataMonitor',
                        name: 'compressivePressDataMonitor',
                        meta: {
                            title: '抗折抗压机数据监控',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataMonitorManage/compressivePressDataMonitor/index.vue')
                    },
                    { // 试验数据监控之沥青设备监控--针入度
                        path: '/materialQualityPage/penetrationMonitor',
                        name: 'penetrationMonitor',
                        meta: {
                            title: '针入度',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataMonitorManage/asphaltEquipmentMonitor/penetrationMonitor/index.vue')
                    },
                    { // 试验数据监控之沥青设备监控--软化点
                        path: '/materialQualityPage/softenPointMonitor',
                        name: 'softenPointMonitor',
                        meta: {
                            title: '软化点',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataMonitorManage/asphaltEquipmentMonitor/penetrationMonitor/index.vue')
                    },
                    { // 试验数据监控之沥青设备监控--延度
                        path: '/materialQualityPage/ductilityMonitor',
                        name: 'ductilityMonitor',
                        meta: {
                            title: '延度',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataMonitorManage/asphaltEquipmentMonitor/ductilityMonitor/index.vue')
                    },
                    { // 试验数据监控之沥青混合料监控--稳定度
                        path: '/materialQualityPage/stabilityMonitor',
                        name: 'stabilityMonitor',
                        meta: {
                            title: '稳定度',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataMonitorManage/asphaltMixtureMonitor/stabilityMonitor/index.vue')
                    },
                    { // 试验数据监控之沥青混合料监控--沥青含量
                        path: '/materialQualityPage/asphaltContentMonitor',
                        name: 'asphaltContentMonitor',
                        meta: {
                            title: '沥青含量',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataMonitorManage/asphaltMixtureMonitor/asphaltContentMonitor/index.vue')
                    },
                    { // 试验数据监控之沥青混合料监控--车辙
                        path: '/materialQualityPage/rutMonitor',
                        name: 'rutMonitor',
                        meta: {
                            title: '车辙',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataMonitorManage/asphaltMixtureMonitor/rutMonitor/index.vue')
                    },

                    { // 试验数据处理之压力机数据处理
                        path: '/materialQualityPage/pressDataProcess',
                        name: 'pressDataProcess',
                        meta: {
                            title: '压力机数据处理',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataProcessManage/pressDataProcess/index.vue')
                    },
                    { // 试验数据处理之万能机数据处理
                        path: '/materialQualityPage/zigzagDataProcess',
                        name: 'zigzagDataProcess',
                        meta: {
                            title: '万能机数据处理',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataProcessManage/zigzagDataProcess/index.vue')
                    },
                    { // 试验数据处理之抗折抗压机数据处理
                        path: '/materialQualityPage/compressivePressDataProcess',
                        name: 'compressivePressDataProcess',
                        meta: {
                            title: '抗折抗压机数据处理',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataProcessManage/compressivePressDataProcess/index.vue')
                    },
                    { // 试验数据处理之沥青设备处理--针入度
                        path: '/materialQualityPage/penetrationProcess',
                        name: 'penetrationProcess',
                        meta: {
                            title: '针入度',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataProcessManage/asphaltEquipmentProcess/penetrationProcess/index.vue')
                    },
                    { // 试验数据处理之沥青设备处理--软化点
                        path: '/materialQualityPage/softenPointProcess',
                        name: 'softenPointProcess',
                        meta: {
                            title: '软化点',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataProcessManage/asphaltEquipmentProcess/penetrationProcess/index.vue')
                    },
                    { // 试验数据处理之沥青设备处理--延度
                        path: '/materialQualityPage/ductilityProcess',
                        name: 'ductilityProcess',
                        meta: {
                            title: '延度',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataProcessManage/asphaltEquipmentProcess/ductilityProcess/index.vue')
                    },
                    { // 试验数据处理之沥青混合料处理--稳定度
                        path: '/materialQualityPage/stabilityProcess',
                        name: 'stabilityProcess',
                        meta: {
                            title: '稳定度',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataProcessManage/asphaltMixtureProcess/stabilityProcess/index.vue')
                    },
                    { // 试验数据处理之沥青混合料处理--沥青含量
                        path: '/materialQualityPage/asphaltContentProcess',
                        name: 'asphaltContentProcess',
                        meta: {
                            title: '沥青含量',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataProcessManage/asphaltMixtureProcess/asphaltContentProcess/index.vue')
                    },
                    { // 试验数据处理之沥青混合料处理--车辙
                        path: '/materialQualityPage/rutProcess',
                        name: 'rutProcess',
                        meta: {
                            title: '车辙',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/testDataProcessManage/asphaltMixtureProcess/rutProcess/index.vue')
                    },
                    { // 数据统计分析--压力机数据监控
                        path: '/materialQualityPage/concreteQuality',
                        name: 'concreteQuality',
                        meta: {
                            title: '压力机数据监控',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/analysisDataManage/concreteQuality/index.vue')
                    },
                    { // 数据统计分析--钢筋质量趋势
                        path: '/materialQualityPage/rebarQuality',
                        name: 'rebarQuality',
                        meta: {
                            title: '钢筋质量趋势',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/analysisDataManage/rebarQuality/index.vue')
                    }, { // 数据统计分析--水泥质量趋势
                        path: '/materialQualityPage/cementQuality',
                        name: 'cementQuality',
                        meta: {
                            title: '水泥质量趋势',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/analysisDataManage/cementQuality/index.vue')
                    }, { // 数据统计分析--砂浆质量趋势
                        path: '/materialQualityPage/mortarQuality',
                        name: 'mortarQuality',
                        meta: {
                            title: '砂浆质量趋势',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/analysisDataManage/mortarQuality/index.vue')
                    },
                    { // 数据统计分析--净浆质量趋势
                        path: '/materialQualityPage/pasteQuality',
                        name: 'pasteQuality',
                        meta: {
                            title: '净浆质量趋势',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/machineNetworkManage/analysisDataManage/pasteQuality/index.vue')
                    },
                    
                    // 试验机联网

                    { // 数据统计分析--净浆质量趋势
                        path: '/materialQualityPage/pitchsystem',
                        name: 'pasteQuality',
                        meta: {
                            title: '沥青试验机联网系统',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/pitchsystem.vue')
                    },
                    { // 数据统计分析--净浆质量趋势
                        path: '/materialQualityPage/pitchhw',
                        name: 'pitchhw',
                        meta: {
                            title: '梁板养护温湿度监控',
                            requiresAuth: true
                        },
                        component: () =>
                            import('@/views/materialQualityPage/pitchhw/index.vue')
                    },
                    



                    // 试验机联网监管





                ]
            },

            {
                path: '/stationProductionPage',
                name: "stationProductionPage",
                component: () =>
                    import('@/views/stationProductionPage/index.vue'),
                meta: {
                    title: '场站生产管控'
                },
                redirect: '/stationProductionPage/stationProductionHome', // 该配置是若点击选择一级菜单时，默认选中并跳转到该一级菜单下的第一个二级菜单
                children: [{
                        path: '/stationProductionPage/stationProductionHome',
                        name: "stationProductionHome",
                        component: () =>
                            import('@/views/stationProductionPage/stationProductionHome/index.vue'),
                        meta: {
                            title: '场站生产管控大屏'
                        },
                    },
                    // 理论配合比--查看
                    {
                        path: '/stationProductionPage/theoreticalMix',
                        name: 'theoreticalMix',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/theoreticalMix/index.vue'),
                        meta: {
                            title: '理论配合比查看',
                            requiresAuth: true
                        },
                    },
                    // 理论配合比--编辑
                    {
                        path: '/stationProductionPage/theoreticalMixText',
                        name: 'theoreticalMixText',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/theoreticalMixText/index.vue'),
                        meta: {
                            title: '理论配合比编辑',
                            requiresAuth: true
                        },
                    },
                    // 施工配合比--查看
                    {
                        path: '/stationProductionPage/proportionMix',
                        name: 'proportionMix',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/proportionMix/index.vue'),
                        meta: {
                            title: '施工配合比查看',
                            requiresAuth: true
                        },
                    },
                    // 施工配合比--编辑
                    {
                        path: '/stationProductionPage/proportionMixText',
                        name: 'proportionMixText',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/proportionMixText/index.vue'),
                        meta: {
                            title: '施工配合比编辑',
                            requiresAuth: true
                        },
                    },
                    // 浇筑令管理--查看
                    {
                        path: '/stationProductionPage/pouringOrder',
                        name: 'pouringOrder',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/pouringOrder/index.vue'),

                        meta: {
                            title: '浇筑令管理查看',
                            requiresAuth: true
                        },
                    },
                    // 浇筑令管理--编辑
                    {
                        path: '/stationProductionPage/pouringOrderText',
                        name: 'pouringOrderText',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/pouringOrderText/index.vue'),
                        meta: {
                            title: '浇筑令管理编辑',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/HntMixProportion',
                        name: 'HntMixProportion',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/coordinate/HntMixProportion/index.vue'),
                        meta: {
                            title: '生产配合比查看',
                            requiresAuth: true
                        },
                    },
                    //砼-配合比--编辑

                    {
                        path: '/stationProductionPage/HntMixProportionText',
                        name: 'HntMixProportionText',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/coordinate/HntMixProportionText/index.vue'),
                        meta: {
                            title: '生产配合比编辑',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/supervisionList',
                        name: 'supervision',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/supervisionList/index.vue'),
                        meta: {
                            title: '拌合生产数据信息',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/closure',
                        name: 'closure',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/closure/index.vue'),
                        meta: {
                            title: '拌合生产超标监控',
                            requiresAuth: true
                        },
                    },
                    //砼-设备检定--查看
                    {
                        path: '/stationProductionPage/EquipmentCalibration',
                        name: 'EquipmentCalibration',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/Equipment/EquipmentCalibration/index.vue'),
                        meta: {
                            title: '拌合设备检定管理查看',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/EquipmentCalibrationText',
                        name: 'EquipmentCalibrationText',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/Equipment/EquipmentCalibrationText/index.vue'),
                        meta: {
                            title: '拌合设备检定管理编辑',
                            requiresAuth: true
                        },
                    },
                    { // 生产用量
                        path: '/stationProductionPage/productionAmount',
                        name: 'productionAmount',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/pcManage/productionAmount/index.vue'),
                        meta: {
                            title: '任务单生产动态统计',
                            requiresAuth: true
                        },
                    },
                    { //材料用量
                        path: '/stationProductionPage/materialConsumption',
                        name: 'materialConsumption',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/pcManage/materialConsumption/index.vue'),
                        meta: {
                            title: '任务单用料情况统计',
                            requiresAuth: true
                        },

                    },
                    //砼-设备检定--编辑
                    {
                        path: '/stationProductionPage/output',
                        name: 'output',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/stManage/output.vue'),
                        meta: {
                            title: '阶段生产方量统计',
                            requiresAuth: true
                        },
                    }, // 混凝土超标统计
                    {
                        path: '/stationProductionPage/exceedance',
                        name: 'exceedance',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/stManage/exceedance.vue'),
                        meta: {
                            title: '生产超标情况统计',
                            requiresAuth: true
                        },

                    },
                    {
                        path: '/stationProductionPage/material',
                        name: 'material',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/stManage/material.vue'),
                        meta: {
                            title: '拌合材料消耗统计',
                            requiresAuth: true
                        },
                    },
                    { //智能监控 联网状态
                        path: '/stationProductionPage/networkStatus',
                        name: 'networkStatus',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/controlManage/networkStatus.vue'),
                        meta: {
                            title: '砼拌合机联网状态',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/mixingPlant',
                        name: 'mixingPlant',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/TbhxtManage/mixingPlant.vue'),
                        meta: {
                            title: '项目部拌合站信息',
                            requiresAuth: true
                        },
                    },
                    // 报警参数设置
                    {
                        path: '/stationProductionPage/alarmParameterSetting',
                        name: 'alarmParameterSetting',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/TbhxtManage/alarmParameterSetting.vue'),
                        meta: {
                            title: '材料超标参数设置',
                            requiresAuth: true
                        },

                    },
                    // 预警通知人员对象
                    {
                        path: '/stationProductionPage/warningObject',
                        name: 'warningObject',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/TbhxtManage/warningObject.vue'),
                        meta: {
                            title: '预警通知人员对象',
                            requiresAuth: true
                        },
                    },
                    // 预警短信模板
                    {
                        path: '/stationProductionPage/warningInformation',
                        name: 'warningInformation',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/TbhxtManage/warningInformation.vue'),
                        meta: {
                            title: '预警短信模板管理',
                            requiresAuth: true
                        },
                    },
                    // 产能分析
                    {
                        path: '/stationProductionPage/deliverability',
                        name: 'deliverability',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/bhManage/deliverability.vue'),
                        meta: {
                            title: '产能分析',
                            requiresAuth: true
                        },
                    },
                    // 材料用量分析
                    {
                        path: '/stationProductionPage/Consumption',
                        name: 'Consumption',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/bhManage/Consumption.vue'),
                        meta: {
                            title: '材料用量分析',
                            requiresAuth: true
                        },
                    },
                    // 材料偏差走势
                    {
                        path: '/stationProductionPage/deviationTrend',
                        name: 'deviationTrend',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/bhManage/deviationTrend.vue'),
                        meta: {
                            title: '材料偏差走势',
                            requiresAuth: true
                        },
                    },
                    // 生产时间段分析
                    {
                        path: '/stationProductionPage/timePeriod',
                        name: 'timePeriod',
                        component: () =>
                            import('@/views/stationProductionPage/HntManage/bhManage/timePeriod.vue'),
                        meta: {
                            title: '生产时间段分析',
                            requiresAuth: true
                        },
                    },
                    // 混凝土产量统计




                    // 水稳
                    {
                        path: '/stationProductionPage/instantly', //水稳-动态监控
                        name: 'instantly',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/trends/instantly/index.vue'),
                        meta: {
                            title: '动态监控',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/superRecord', //水稳-超标记录
                        name: 'superRecord',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/trends/superRecord/index.vue'),
                        meta: {
                            title: '超标记录',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/Equipment', //水稳-设备检定查看
                        name: 'Equipment',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/Equipment/Equipment/index.vue'),
                        meta: {
                            title: '设备检定查看',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/EquipmentText', //水稳-设备检定编辑
                        name: 'EquipmentText',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/Equipment/EquipmentText/index.vue'),
                        meta: {
                            title: '设备检定编辑',
                            requiresAuth: true
                        },
                    },


                    {
                        path: '/stationProductionPage/waterProduce', //水稳-产能分析
                        name: 'waterProduce',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/analyse/waterProduce.vue'),
                        meta: {
                            title: '产能分析',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/waterConsumption', //水稳-材料用量
                        name: 'waterConsumption',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/analyse/waterConsumption.vue'),
                        meta: {
                            title: '材料用量',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/percentage', //水稳-材料百分比
                        name: 'percentage',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/analyse/percentage.vue'),
                        meta: {
                            title: '材料百分比',
                            requiresAuth: true
                        },
                    }, {
                        path: '/stationProductionPage/WaterDeviation', //水稳-材料偏差
                        name: 'WaterDeviation',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/analyse/WaterDeviation.vue'),
                        meta: {
                            title: '材料偏差',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/waterOutput', //水稳-产量统计
                        name: 'waterOutput',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/statistics/waterOutput.vue'),
                        meta: {
                            title: '产量统计',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/waterMaterial', //水稳-原材料消耗
                        name: 'waterMaterial',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/statistics/waterMaterial.vue'),
                        meta: {
                            title: '原材料消耗',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/networking', //水稳-联网状态
                        name: 'networking',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/intellect/networking.vue'),
                        meta: {
                            title: '联网状态',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/swMixingPlant', //水稳-系统设置
                        name: 'swMixingPlant',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/swHxtManage/swMixingPlant.vue'),
                        meta: {
                            title: '系统设置',
                            requiresAuth: true
                        },
                    },

                    {
                        path: '/stationProductionPage/swAlarmParameterSetting', //水稳-材料超标参数设置
                        name: 'swAlarmParameterSetting',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/swHxtManage/swAlarmParameterSetting.vue'),
                        meta: {
                            title: '材料超标参数设置',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/sWwarningObject', //水稳-预警通知人员对象
                        name: 'sWwarningObject',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/swHxtManage/sWwarningObject.vue'),
                        meta: {
                            title: '预警通知人员对象',
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/sWwarningInformation', //水稳-预警短信模板
                        name: 'sWwarningInformation',
                        component: () =>
                            import('@/views/stationProductionPage/WaterManage/swHxtManage/sWwarningInformation.vue'),
                        meta: {
                            title: '预警短信模板',
                            requiresAuth: true
                        },
                    },
                    // 水稳
                    // 沥青
                    {
                        path: '/stationProductionPage/mixProportion',
                        name: 'mixProportion',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/bsManage/mixProportion.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/stationProductionPage/real_timeData',
                        name: 'real_timeData',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/dyMonitorManage/real_timeData/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 动态监控之误差分析
                        path: '/stationProductionPage/errorMonitoring',
                        name: 'errorMonitoring',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/dyMonitorManage/errorMonitoring/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    {
                        //沥青设备查看
                        path: '/stationProductionPage/lqEquipment',
                        name: 'lqEquipment',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/Equipment/lqEquipment/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    {
                        //沥青设备编辑
                        path: '/stationProductionPage/lqEquipmentText',
                        name: 'lqEquipmentText',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/Equipment/lqEquipmentText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },


                    // 数据分析之误差分析
                    {
                        path: '/stationProductionPage/errorAnalysis',
                        name: 'errorAnalysis',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/dataAnalysisManage/errorAnalysis.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 数据分析之生产时间段分析
                    {
                        path: '/stationProductionPage/productionPeriod',
                        name: 'productionPeriod',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/dataAnalysisManage/productionPeriod.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 数据分析之材料用量分析
                    {
                        path: '/stationProductionPage/materConsumption',
                        name: 'materConsumption',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/dataAnalysisManage/materConsumption.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 数据分析之日统计
                    {
                        path: '/stationProductionPage/dayStatistics',
                        name: 'dayStatistics',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/dataAnalysisManage/dayStatistics.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 数据分析之生产统计
                    {
                        path: '/stationProductionPage/productionStatistics',
                        name: 'productionStatistics',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/dataAnalysisManage/productionStatistics.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 数据分析之报警数据处理
                    {
                        path: '/stationProductionPage/alarmData',
                        name: 'alarmData',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/dataAnalysisManage/alarmData.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 系统设置之拌合站设置
                    {
                        path: '/stationProductionPage/lqMixingPlant',
                        name: 'lqMixingPlant',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/lqxtManage/lqMixingPlant.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 系统设置之报警参数设置
                    {
                        path: '/stationProductionPage/lqAlarmParameterSetting',
                        name: 'lqAlarmParameterSetting',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/lqxtManage/lqAlarmParameterSetting.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    // 系统设置之短信预警模板
                    {
                        path: '/stationProductionPage/lqWarningInformation',
                        name: 'lqWarningInformation',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/lqxtManage/lqWarningInformation.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 系统设置之预警通知对象人员
                    {
                        path: '/stationProductionPage/lqwarningObject',
                        name: 'lqwarningObject',
                        component: () =>
                            import('@/views/stationProductionPage/pitchManage/lqxtManage/lqwarningObject.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    // 沥青
                    //张拉
                    { //张拉--任务单--查看
                        path: '/stationProductionPage/Tension_task_list',
                        name: 'Tension_task_list',
                        component: () =>
                            import('@/views/stationProductionPage/TensionManage/Tension_task_list/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //张拉--任务单--编辑
                        path: '/stationProductionPage/Tension_task_listText',
                        name: 'Tension_task_listText',
                        component: () =>
                            import('@/views/stationProductionPage/TensionManage/Tension_task_listText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //张拉--实时数据查询
                        path: '/stationProductionPage/TensionRealTime',
                        name: 'TensionRealTime',
                        component: () =>
                            import('@/views/stationProductionPage/TensionManage/TensionRealTime/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //张拉--超标数据查询
                        path: '/stationProductionPage/TensionExceedData',
                        name: 'TensionExceedData',
                        component: () =>
                            import('@/views/stationProductionPage/TensionManage/TensionExceedData/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //张拉--超标数据处理
                        path: '/stationProductionPage/TensionExceedHandle',
                        name: 'TensionExceedHandle',
                        component: () =>
                            import('@/views/stationProductionPage/TensionManage/TensionExceedHandle.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //张拉-系统设置--梁场信息设置
                        path: '/stationProductionPage/TensionBeamYard',
                        name: 'TensionBeamYard',
                        component: () =>
                            import('@/views/stationProductionPage/TensionManage/TensionYjxtManage/TensionBeamYard.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //张拉-系统设置--预警信息设置
                        path: '/stationProductionPage/TensionEarlyWarning',
                        name: 'TensionEarlyWarning',
                        component: () =>
                            import('@/views/stationProductionPage/TensionManage/TensionYjxtManage/TensionEarlyWarning.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //张拉-系统设置--预警人员设置
                        path: '/stationProductionPage/TensionWarningPerson',
                        name: 'TensionWarningPerson',
                        component: () =>
                            import('@/views/stationProductionPage/TensionManage/TensionYjxtManage/TensionWarningPerson.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //张拉-系统设置--预警短信模板管理
                        path: '/stationProductionPage/TensionAlertTemplate',
                        name: 'TensionAlertTemplate',
                        component: () =>
                            import('@/views/stationProductionPage/TensionManage/TensionYjxtManage/TensionAlertTemplate.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    //张拉

                    { //压浆--任务单---查看
                        path: '/stationProductionPage/Grout_task_list',
                        name: 'Grout_task_list',
                        component: () =>
                            import('@/views/stationProductionPage/GroutManage/Grout_task_list/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //压浆--任务单---编辑
                        path: '/stationProductionPage/Grout_task_listText',
                        name: 'Grout_task_listText',
                        component: () =>
                            import('@/views/stationProductionPage/GroutManage/Grout_task_listText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //压浆--实时数据查询
                        path: '/stationProductionPage/GroutRealTime',
                        name: 'GroutRealTime',
                        component: () =>
                            import('@/views/stationProductionPage/GroutManage/GroutRealTime/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //压浆--超标数据查询
                        path: '/stationProductionPage/GroutExceedData',
                        name: 'GroutExceedData',
                        component: () =>
                            import('@/views/stationProductionPage/GroutManage/GroutExceedData/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //压浆--超标数据处理
                        path: '/stationProductionPage/GroutExceedHandle',
                        name: 'GroutExceedHandle',
                        component: () =>
                            import('@/views/stationProductionPage/GroutManage/GroutExceedHandle.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    { //压浆-系统设置--梁场信息设置
                        path: '/stationProductionPage/GroutBeamYard',
                        name: 'GroutBeamYard',
                        component: () =>
                            import('@/views/stationProductionPage/GroutManage/GroutYjxtManage/GroutBeamYard.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //压浆-系统设置--预警信息设置
                        path: '/stationProductionPage/GroutEarlyWarning',
                        name: 'GroutEarlyWarning',
                        component: () =>
                            import('@/views/stationProductionPage/GroutManage/GroutYjxtManage/GroutEarlyWarning.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //压浆-系统设置--预警人员设置
                        path: '/stationProductionPage/GroutWarningPerson',
                        name: 'GroutWarningPerson',
                        component: () =>
                            import('@/views/stationProductionPage/GroutManage/GroutYjxtManage/GroutWarningPerson.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { //压浆-系统设置--预警短信模板管理
                        path: '/stationProductionPage/GroutAlertTemplate',
                        name: 'GroutAlertTemplate',
                        component: () =>
                            import('@/views/stationProductionPage/GroutManage/GroutYjxtManage/GroutAlertTemplate.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                ]
            },
            {
                path: '/siteQualityPage',
                name: "siteQualityPage",
                component: () =>
                    import('@/views/siteQualityPage/index.vue'),
                meta: {
                    title: '场站生产管控'
                },
                redirect: '/siteQualityPage/siteQualityHome', // 该配置是若点击选择一级菜单时，默认选中并跳转到该一级菜单下的第一个二级菜单
                children: [{
                        path: '/siteQualityPage/siteQualityHome',
                        name: "siteQualityHome",
                        component: () =>
                            import('@/views/siteQualityPage/siteQualityHome/index.vue'),
                        meta: {
                            title: '场站生产管控大屏'
                        },
                    },


                    //      //现场生产质量网格
                    {
                        path: '/siteQualityPage/stationQualityList',
                        name: 'stationQualityList',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/grid/stationQuality/stationQualityList.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/siteQualityPage/stationQualityListText',
                        name: 'stationQualityListText',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/grid/stationQuality/stationQualityListText.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    //场站/实体开工管理
                    {
                        path: '/siteQualityPage/startLook',
                        name: 'startLook',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/grid/start/startLook.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/siteQualityPage/startText',
                        name: 'startText',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/grid/start/startText.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    //质量管理责任网格
                    {
                        path: '/siteQualityPage/responsibility',
                        name: 'responsibility',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/grid/responsibilityGrid/responsibility.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    {
                        path: '/siteQualityPage/responsibilityText',
                        name: 'responsibilityText',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/grid/responsibilityGrid/responsibilityText.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    {
                        // 工作指令--下发---查看
                        path: '/siteQualityPage/distribute',
                        name: 'distribute',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/workOrder/distribute/distribute.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    {
                        // 工作指令--下发---编辑
                        path: '/siteQualityPage/distributeText',
                        name: 'distributeText',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/workOrder/distribute/distributeText.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    {
                        // 工作指令--执行---查看
                        path: '/siteQualityPage/execute',
                        name: 'execute',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/workOrder/execute/execute.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    {
                        // 工作指令--执行---编辑
                        path: '/siteQualityPage/executeText',
                        name: 'executeText',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/workOrder/execute/executeText.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    {
                        // 工作指令--在线沟通---查看
                        path: '/siteQualityPage/communicate',
                        name: 'communicate',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/workOrder/communicate/communicate.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    {
                        // 工作指令--在线沟通---编辑
                        path: '/siteQualityPage/communicateText',
                        name: 'communicateText',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/workOrder/communicate/communicateText.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    //现场质量巡查管理--质量巡查信息管理--查看
                    {
                        path: '/siteQualityPage/patrolInformation',
                        name: 'patrolInformation',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/patrol/information/patrolInformation.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    //现场质量巡查管理--质量巡查信息管理--编辑
                    {
                        path: '/siteQualityPage/patrolInformationText',
                        name: 'patrolInformationText',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/patrol/information/patrolInformationText.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    //现场质量巡查管理--巡查整改反馈管理--查看
                    {
                        path: '/siteQualityPage/patrolRectification',
                        name: 'patrolRectification',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/patrol/rectification/patrolRectification.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    //现场质量巡查管理--巡查整改反馈管理--编辑
                    {
                        path: '/siteQualityPage/patrolRectificationText',
                        name: 'patrolRectificationText',
                        component: () =>
                            import('@/views/siteQualityPage/QualityGridManage/patrol/rectification/patrolRectificationText.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 软基施工监管--成桩数据管理
                        path: '/siteQualityPage/pileDataManage',
                        name: 'pileDataManage',
                        component: () =>
                            import('@/views/siteQualityPage/softFoundationManage/pileDataManage/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 软基施工监管--软基设备参数信息
                        path: '/siteQualityPage/overLimitMonitor',
                        name: 'overLimitMonitor',
                        component: () =>
                            import('@/views/siteQualityPage/softFoundationManage/overLimitMonitor/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                ]
            },
            {
                path: '/PhysicalQualityPage',
                name: "PhysicalQualityPage",
                component: () =>
                    import('@/views/PhysicalQualityPage/index.vue'),
                meta: {
                    title: '实体质量管控'
                },
                redirect: '/PhysicalQualityPage/PhysicalQualityHome', // 该配置是若点击选择一级菜单时，默认选中并跳转到该一级菜单下的第一个二级菜单
                children: [{
                        path: '/PhysicalQualityPage/PhysicalQualityHome',
                        name: "PhysicalQualityHome",
                        component: () =>
                            import('@/views/PhysicalQualityPage/PhysicalQualityHome/index.vue'),
                        meta: {
                            title: '实体质量管控大屏'
                        },
                    },
                    // 回弹强度检测
                    { // 回弹数据字典--检测判定依据
                        path: '/PhysicalQualityPage/detectionCriteria',
                        name: 'detectionCriteria',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundDataDictionary/detectionCriteria/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 回弹数据字典--检测判定依据
                        path: '/PhysicalQualityPage/detectionCriteriaText',
                        name: 'detectionCriteriaText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundDataDictionary/detectionCriteriaText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 回弹数据字典--回弹检测设备
                        path: '/PhysicalQualityPage/reboundDetectionEquipment',
                        name: 'reboundDetectionEquipment',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundDataDictionary/reboundDetectionEquipment/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 回弹数据字典--回弹检测设备
                        path: '/PhysicalQualityPage/reboundDetectionEquipmentText',
                        name: 'reboundDetectionEquipmentText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundDataDictionary/reboundDetectionEquipmentText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },


                    { // 回弹委托单查看
                        path: '/PhysicalQualityPage/reboundEntrust',
                        name: 'reboundEntrust',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundEntrust/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 回弹委托单编辑
                        path: '/PhysicalQualityPage/reboundEntrustText',
                        name: 'reboundEntrustText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundEntrustText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    { // 回弹检测任务--查看
                        path: '/PhysicalQualityPage/reboundDetectionTask',
                        name: 'reboundDetectionTask',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundDetectionTask/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 回弹检测任务--编辑
                        path: '/PhysicalQualityPage/reboundDetectionTaskText',
                        name: 'reboundDetectionTaskText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundDetectionTaskText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 回弹检测数据--查看
                        path: '/PhysicalQualityPage/reboundDetectionData',
                        name: 'reboundDetectionData',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundDetectionData/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 回弹检测数据--编辑
                        path: '/PhysicalQualityPage/reboundDetectionDataText',
                        name: 'reboundDetectionDataText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundDetectionDataText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 回弹记录审批--查看
                        path: '/PhysicalQualityPage/reboundRecordApproval',
                        name: 'reboundRecordApproval',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundRecordApproval/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 回弹记录审批--编辑
                        path: '/PhysicalQualityPage/reboundRecordApprovalText',
                        name: 'reboundRecordApprovalText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundRecordApprovalText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 不合格数据管理--查看
                        path: '/PhysicalQualityPage/reboundUnqualifiedData',
                        name: 'reboundUnqualifiedData',
                        component: () =>
                            import('@/views/PhysicalQualityPage/reboundStrengthManage/reboundUnqualifiedData/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    // 回弹强度检测


                    // 钢保厚度检测
                    { // 钢保厚度检测--检测判定依据--查看
                        path: '/PhysicalQualityPage/rebarDetectionCriteria',
                        name: 'rebarDetectionCriteria',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarDataDictionary/rebarDetectionCriteria/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 钢保厚度检测--检测判定依据--编辑
                        path: '/PhysicalQualityPage/rebarDetectionCriteriaText',
                        name: 'rebarDetectionCriteriaText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarDataDictionary/rebarDetectionCriteriaText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 钢保厚度检测--回弹检测设备--查看
                        path: '/PhysicalQualityPage/rebarDetectionEquipment',
                        name: 'rebarDetectionEquipment',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarDataDictionary/rebarDetectionEquipment/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 钢保厚度检测--回弹检测设备--编辑
                        path: '/PhysicalQualityPage/rebarDetectionEquipmentText',
                        name: 'rebarDetectionEquipmentText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarDataDictionary/rebarDetectionEquipmentText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    { // 钢保委托单查看
                        path: '/PhysicalQualityPage/rebarEntrust',
                        name: 'rebarEntrust',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarEntrust/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 回弹委托单编辑
                        path: '/PhysicalQualityPage/rebarEntrustText',
                        name: 'rebarEntrustText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarEntrustText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    { // 钢保检测任务--查看
                        path: '/PhysicalQualityPage/rebarDetectionTask',
                        name: 'rebarDetectionTask',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarDetectionTask/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 钢保检测任务--编辑
                        path: '/PhysicalQualityPage/rebarDetectionTaskText',
                        name: 'rebarDetectionTaskText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarDetectionTaskText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 钢保检测数据--查看
                        path: '/PhysicalQualityPage/rebarDetectionData',
                        name: 'rebarDetectionData',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarDetectionData/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 钢保检测数据--编辑
                        path: '/PhysicalQualityPage/rebarDetectionDataText',
                        name: 'rebarDetectionDataText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarDetectionDataText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 厚度记录审批--查看
                        path: '/PhysicalQualityPage/rebarRecordApproval',
                        name: 'rebarRecordApproval',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarRecordApproval/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 厚度记录审批--编辑
                        path: '/PhysicalQualityPage/rebarRecordApprovalText',
                        name: 'rebarRecordApprovalText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarRecordApprovalText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    { // 不合格数据管理
                        path: '/PhysicalQualityPage/rebarUnqualifiedData',
                        name: 'rebarUnqualifiedData',
                        component: () =>
                            import('@/views/PhysicalQualityPage/rebarThicknessManage/rebarUnqualifiedData/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },


                    // 桩基检测任务
                    {
                        path: '/PhysicalQualityPage/detectionTask',
                        name: 'detectionTask',
                        component: () =>
                            import('@/views/PhysicalQualityPage/pieManage/detectionTask/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 桩基检测任务
                    {
                        path: '/PhysicalQualityPage/detectionTaskText',
                        name: 'detectionTaskText',
                        component: () =>
                            import('@/views/PhysicalQualityPage/pieManage/detectionTaskText/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 桩基检测数据
                    {
                        path: '/PhysicalQualityPage/pilesDetectedData',
                        name: 'pilesDetectedData',
                        component: () =>
                            import('@/views/PhysicalQualityPage/pieManage/pilesDetectedData/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 成孔检测数据
                    {
                        path: '/PhysicalQualityPage/holeDetectedData',
                        name: 'holeDetectedData',
                        component: () =>
                            import('@/views/PhysicalQualityPage/pieManage/holeDetectedData/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },
                    // 检测设备管理
                    {
                        path: '/PhysicalQualityPage/testEquipmentManage',
                        name: 'testEquipmentManage',
                        component: () =>
                            import('@/views/PhysicalQualityPage/pieManage/testEquipmentManage/index.vue'),
                        meta: {
                            requiresAuth: true
                        },
                    },

                    // 钢保厚度检测
                ]
            },
        ]
    },


]

const router = new VueRouter({
    // mode: 'history',
    // base: process.env.BASE_URL,
    routes
})
// var code = JSON.parse(sessionStorage.getItem("yjSmart-ModuleList"))

// 导航守卫
// 使用 router.beforeEach 注册一个全局前置守卫，判断用户是否登陆

router.beforeEach((to, from, next) => {

    //如果去往登录页则放行 
    if (to.path === '/') {
        next();
    } else {
        // if (to.meta.requiresAuth == true) {
        //     if (JSON.parse(sessionStorage.getItem("yjSmart-userInfo")).enCode != "System") {
        //         console.log(code, to.name, code.some(item => item.fEncode.includes(to.name)));
        //         if (code.some(item => item.fEncode.includes(to.name))) {
        //             next();
        //         } else {
        //             next({
        //                 path: '/'
        //             });
        //         }

        //     }
        // }
        // 从本地存储里获取token
        let token = window.sessionStorage.getItem('yjSmart-token');
        // 判断token是否为空如果为空则跳转到登录页 如果有则放行
        if (token === null || token === '') {
            next({
                path: '/'
            });
        } else {
            next();
        }



        let userInfo = sessionStorage.getItem('yjSmart-userInfo')
        if (userInfo === null || userInfo === '') {
            next({
                path: '/'
            });
        } else {
            next();
        }
    }



});

export default router